import java.io.FileInputStream;
import java.io.FileOutputStream;


public class InputStreamTest
{
	public static void main(String[] args) throws Exception
	{
		
	}
	
	private static void testRead() throws Exception
	{
		FileOutputStream fo = new FileOutputStream("output.txt");
		FileInputStream fi = new FileInputStream("incomingImage-sample.xml");
		
		byte val[] = new byte[1024];
		byte byteBuffer[];
		
		
		
		
		while (fi.read(val) != -1) {
			fo.write(val);
		}
		fo.close();
		fi.close();

	}
}
